<?php
namespace Emoney\EpayBundle\Form\Type;

/**
 * Description of ContactType
 *
 * @author FFOZEU
 */
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class ContactType extends AbstractType{
    //put your code here
    
    public function buildForm(FormBuilder $builder, array $options){
        
        $builder->add('name', 'text', array('required' => true, 'label' => 'Name', 'trim' => true));
        $builder->add('email', 'email', array('required' => true, 'label' => 'Email', 'trim' => true));
        $builder->add('tel', 'integer', array('required' => false, 'label' => 'Tel', 'trim' => true));
        $builder->add('objet', 'text', array('required' => true, 'label' => 'Objet', 'trim' => true));
        $builder->add('message', 'textarea', array('required' => true, 'label' => 'Message', 'trim' => true));
    }
    
    public function getName(){
        
        return 'contact';
    }
}

?>
